package com.foreknow.dao;

import com.foreknow.entity.Rule;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RuleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Rule record);

    int insertSelective(Rule record);

    Rule selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Rule record);

    int updateByPrimaryKey(Rule record);

    //一对一 查询用户名和排班规则排班日期
    List<Rule> selectUserWeek();

    int insertRules(@Param("rules")List<Rule> rules);


    List<Rule> findRuleByQuery(@Param("deptId")Integer deptId, @Param("registleveId") Integer registleveId);
}